home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PRINTER
/
EPSON.ARJ
/
GRAFX.DOC
< prev
next >
Wrap
Text File
|
1985-12-11
|
3KB
|
74 lines
GRAFX
by
Peter Magnusson Version 1.0
10/3/85
GRAFX.COM was written as an initial programming exercise in Turbo Pascal.
The purpose of the program is to create a user defined set of characters
for the FX-80. Specifically, these characters are the IBM extended ASCII
characters 176 thru 223. These characters are used for simple graphics
on the screen. The FX-80 defines these ASCII characters as italicized
numbers and capital letters. Loading the IBM characters to the printer
allows you to print these simple graphics characters when you press
Shift-PrtSc.
The flow of the program is as follows (GRAFX.PAS is reasonably documented
if you want more detail):
1) An inital message is put on the screen.
2) An array containing the ASCII-format character definitions is
filled. This is basically a file canabalized from executing
FXDEFINE - a PD BASIC program for designing characters for the
FX-80.
3) The FX-80 is initialized to enable it to use the user defined
characters and to tell it which characters are being defined.
4) The array is then read, one line at a time, and converted to
integers. This 11 element set is then sent to the the printer
preceded by an attribute byte and thus defines a character.
5) A final message is put on the screen and you are returned to DOS.
Operation is simple:
1) Switch 1-4 at the right rear corner of the FX-80 should be off.
2) With GRAFX.COM on the default drive and current directory,
enter GRAFX from the DOS prompt. You will be returned to DOS.
3) If you want to disable the printing of the new characters,
simply cycle the printer power off and on.
The following uses all of the characters defined and can be a test of
compatibility of your printer (and my program!) by entering:
COPY GRAFX.DOC LPT1
┌────┬────┐ ╔════╦════╗ ╒════╤════╕ ╓────╥────╖
│ │ │ ║ ║ ║ │ │ │ ░░░░░ ║ ║ ║
├────┼────┤ ╠════╬════╣ ╞════╪════╡ ▒▒▒▒▒ ╟────╫────╢
│ │ │ ║ ║ ║ │ │ │ ▓▓▓▓▓ ║ ║ ║
└────┴────┘ ╚════╩════╝ ╘════╧════╛ ╙────╨────╜
▄▄▄▄▄▄▄▄▄▄
▌ ▐
▌ █ ▐
▌ ▐
▀▀▀▀▀▀▀▀▀▀
As an initial programming effort, this obviously can be embellished. You are
encouraged to do so. Leave me a message on the SIG or in EASYPLEX
if this tickles your fancy and leave any suggestions for improvement.
Peter Magnusson
75006,243